﻿using BW.MesProject.Public.ErrorCode;
using BW.MesProject.WareHouse.Domain;
using BW.MesProject.WareHouse.Infrastructure.Dto.Input;
using BW.MesProject.WareHouse.Infrastructure.Dto.OutPut;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Infrastructure
{
    /// <summary>
    /// 工序管理
    /// </summary>
   public interface  IProcessManagServices
    {

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="ProcessManag"></param>
        /// <returns></returns>
        ApiResult<int> AddProcessManag(ProcessManagModel ProcessManag);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="qryInput"></param>
        /// <returns></returns>
        ApiResult<List<ProcessManagOut>> GetProcessManag(QryInput qryInput);
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="qryInput"></param>
        /// <returns></returns>
        ApiResult<List<ProcessManagOut>> GetProcessManagNew(QryInput qryInput);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateProcessManag(ProcessManagModel model);

        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateEnable(ProcessManagModel model);

        /// <summary>
        /// 修改删除状态
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        ApiResult<int> UpdateDelete(string Id);

        /// <summary>
        /// 查询编码
        /// </summary>
        /// <param name="PMId"></param>
        /// <returns></returns>
        ApiResult<int> GetPMId(string PMId);





    }
}
